package com.example.star.api_service;

import com.example.star.entity.Address;
import com.example.star.entity.Follow;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface ApiAddress {
    @POST("address")
    Call<Address> saveAddress(@Body Address address);
    @GET("address")
    Call<List<Address>> getAddress();

    @GET("address/items-by-user")
    Call<List<Address>> getAddressByUserName(@Query("userName") String userName);

}
